package blazingbubble.game.command.net;

import blazingbubble.command.NetworkCommand;
import blazingbubble.game.command.StartGameCommand;
import spark.network.Sender;
import spark.network.NetworkConnection;

public class NetStartGameCommand extends StartGameCommand {
	private NetworkCommand networkCommand;

	void startupNetworkingAbility(Sender sender, NetworkConnection serverConnection) {
		networkCommand = new NetworkCommand(sender, serverConnection);
	}

	@Override
	public void start() {
		moltencore.network.protocol.StartGame packet = new moltencore.network.protocol.StartGame();
		packet.setHostIdentification(getHostIdentification());
		networkCommand.send(packet);
	}
}